def myadd(x, y):
    '''unit test for function
    >>> myadd(3, 5)
    35
    '''
    return x * 10 + y


class MyClass:
    '''class level test
    >>> mobj = MyClass(7)
    >>> mobj.newMul(8)
    60
    '''
    def __init__(self, p0):
        self.a0 = p0

    def ynadd(self, p1):
        '''unit test for object method
        >>> mobj = MyClass(6)
        >>> mobj.ynadd(4)
        14
        '''
        return self.a0 + p1 * 2

    def newMul(self, p1):
        return self.a0 * p1 + 4


integration_test = '''
>>> mo = MyClass(2)
>>> mo.newMul(3) + myadd(5, 7)
67
'''


__test__ = {
    "integration_test": integration_test
}


if __name__ == "__main__":
    import doctest
    doctest.testmod()
